package com.ttx.pattern.example.state.after;

/**
 * @author TimFruit
 * @date 2019/5/19 14:15
 */

public class Client {

    public static void main(String[] args) {
        GumballMachine machine=new GumballMachine(5); // 5颗糖果
        machine.insertQuarter();
        machine.turnCrank();
        System.out.println(machine);

        // ---------------------
        machine.insertQuarter();
        machine.ejectQuarter();
        System.out.println(machine);
    }
    
}
